<template>
  <view class="content">
    <view class="top">
      <view class="tab">
        <view class="left">
          <u-tabs
            :list="list1"
            :inactiveStyle="{ fontSize: '16px' }"
            lineColor="purple"
            lineWidth="20px"
            :activeStyle="{
              fontSize: '20px',
              fontWeight: 'bold',
              color: 'purple',
            }"
            @click="click"
          ></u-tabs>
        </view>

        <view class="right">
          <view class="icon">
            <u-icon name="photo" size="26" color="#ffffff"></u-icon>
          </view>
        </view>
      </view>
    </view>
    <view class="bottom">
      <view class="shaixuan">
        <view class="fenlei"></view>
        <view class="moren"></view>
        <view class="buxian"></view>
      </view>
    </view>
    <view class="row">
      <view class="a" @click="toDetaile">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a" @click="toDetaile">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a" @click="toDetaile">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a" @click="toDetaile">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a" @click="toDetaile">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
      <view class="a">
        <view class="tu" style="background: url('../../static/images/01.jpg')">
          <view class="hd">活动已结束</view>
          <view class="hezi">
            <view class="sj">活动时间： 2024-12-05 14：30</view>
            <view class="dw">
              <view>
                <u-icon name="map" color="#ffffff" size="18" />
              </view>
              <view> 珠海 </view>
            </view>
          </view>
        </view>
        <view class="z">
          <p class="wz">在感情中，女人如何做好自己，收获...</p>
          <view class="xb"
            ><view class="man">女士：免费</view>
            <view class="woman">男士：免费</view></view
          >
        </view>
      </view>
    </view>
  </view>
</template>
<script>
export default {
	  onLoad(options) {
    this.ProductData()
  },
  data() {
    return {
      list: [],
      page: 1,
      list1: [
        {
          name: "动态",
        },
        {
          name: "线下活动",
        },
        {
          name: "线上互动",
        },
      ],
    };
  },
  methods: {
    async ProductData() {
      //数据请求
      var params = {
        busid: 0,
        page: this.page,
        keyword: this.keyword,
      };

      //请求中
      var result = await uni.$u.http.post("/product/product/signupData", params);

      if (result.code == 0) {
        return false;
      }

      this.list = this.list(result.data);
    },
    toDetaile() {
      this.$u.route({
        url: "pages/validate/info1",
      });
    },
    click(item) {
      console.log("item", item);
    },
  },
};
</script>

<style  lang="scss" scoped>
.content {
  .z {
    .wz {
      font-size: 22px;
      text-align: center;
      font-weight: bold;
    }
    .xb {
      margin-top: 15px;
      display: flex;
      padding-left: 20px;
      .man {
        color: #0000ff;
        font-size: 12px;
      }
      .woman {
        color: #0000ff;
        margin: 0px 20px;
        font-size: 12px;
      }
    }
  }
  .a {
    margin: 145px auto;
    height: 150px;
    width: 95%;
    .tu {
      margin: 20px auto;
      height: 180px;
      position: relative;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      width: 100%;
      .hd {
        background: #909399;
        width: 80px;
        height: 30px;
        position: absolute;
        text-align: center;
        top: 0;
        right: 0;
        line-height: 30px;
        font-size: 13px;
        border-radius: 10px 10px 0 0; /* 左上角和右上角是10px的圆角，其他两个角没有圆角 */
      }
      .hezi {
        width: 100%;
        color: #ffffff;
        display: flex;
        position: absolute;
        left: 0;
        bottom: 10px;
        justify-content: space-between;
        .sj {
          width: 80%;
        }
        .dw {
          width: 20%;
          display: flex;
          justify-content: space-around;
        }
      }
    }
  }
  .a:nth-child(1) {
    margin-top: -15px;
  }
  .top {
    height: 30px;
    background: linear-gradient(to right, pink, rgb(105, 80, 105));
    .tab {
      display: flex;
      align-items: center;
      justify-content: right;
      .left {
        width: 70%;
      }
      .right {
        display: flex;
        align-items: center;
        justify-content: right;
        width: 30%;
      }
      .icon {
      }
    }
  }

  .bottom {
    background: linear-gradient(to right, pink, rgb(105, 80, 105));
    height: 80px;

    .shaixuan {
      padding-top: 25px;
      display: flex;
      height: 40px;
      width: 100%;
      .fenlei {
        width: 120px;
        height: 45px;
        background: #ffffff;
        border-radius: 30px;
        margin-left: 17px;
      }
      .moren {
        width: 120px;
        height: 45px;
        background: #ffffff;
        border-radius: 30px;
        margin-left: 17px;
      }
      .buxian {
        width: 120px;
        height: 45px;
        background: #ffffff;
        border-radius: 30px;
        margin-left: 17px;
      }
    }
  }
}
.row {
  height: 780px;
  overflow-y: auto;
}
</style>